<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
	<title></title>
</head> 
    <script language="javascript">  
   
        img = new Array("img/dog0.png","img/dog1.png");  
        size = img.length;  
        i = 0;  
        function chImg(){  
            picID.src = img[i];  
            i++;  
            if (i>=size) {
            	i = 0;
            }
            setTimeout("chImg()",1000);  
        }  
      
    </SCRIPT>  
</head>  
<body onLoad="chImg()">  
<img id="picID" border="0">  
</body>  
</html> 